cmake_minimum_required(VERSION 3.9)
project(cpp_learning)

set(CMAKE_CXX_STANDARD 14)

include_directories(${PROJECT_SOURCE_DIR}/gtest-1.7.0/include/)

add_subdirectory(./gtest-1.7.0)

set(3RD_LIBS gtest pthread)

add_executable(${PROJECT_NAME} main.cpp src/regex_demos/regext_demo.cpp
        src/functionObject/function_object.cpp src/threads/pass_args_to_thread_function.cpp
        src/STL_S/list_demo.cpp src/STL_S/list_demo2.cpp src/STL_S/my_list.cpp src/STL_S/cpp_list.cpp src/life_cycle/class_field_cycle.cpp src/life_cycle/class_field_life_cycle.cpp src/method_param/method_param.cpp src/point/shared_ptr/shared_ptr_shared.cpp src/STL_S/unorderd_map_test.cpp src/STL_S/stack_demos/stack_simple.cpp src/STL_S/stack_demos/stack_node_demo.cpp src/STL_S/stack_demos/stack_constructor_demos.cpp)

target_link_libraries(${PROJECT_NAME} ${3RD_LIBS})